package cn.antblog.dealData.util;

import cn.hutool.core.bean.BeanUtil;

import java.util.Map;
import java.util.Set;

/**
 * @author yangjy
 * @version 1.0
 * @description: 实体增强 支持 stream
 * @date 2022/10/21 15:37
 */
public class EachImpl implements IEach<String, Object> {

    /**
     * 增强实现
     *
     * @return
     */
    @Override
    public Set<Map.Entry<String, Object>> entrySet() {
        Map<String, Object> map = BeanUtil.beanToMap(this);
        return map.entrySet();
    }
}
